---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table8.log
  log type:  text
 opened on:  11 Jun 2020, 11:06:21

. 
. use "$path/foreclosures_analysis.dta", clear

. 
. ** use only foreclosures in last 6 months before election
. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate_six foreclosure_inc_six [aw=pop_y], a(fips sy) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      8,973
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =      43.22
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.9761
                                                Adj R-squared     =     0.9652
                                                Root MSE          =     2.9173

                                        (Replications based on 2,609 clusters in fips)
--------------------------------------------------------------------------------------
                     |   Observed   Bootstrap                         Normal-based
             pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
foreclosure_rate_six |  -.7290573   .1343692    -5.43   0.000    -.9924161   -.4656984
 foreclosure_inc_six |  -.5003492   .0895414    -5.59   0.000    -.6758472   -.3248513
--------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
                fips |            0            2609           2609 *   | 
                  sy |          195             196              1     | 
-----------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b1 = _b[foreclosure_rate_six]

. local se1 = _se[foreclosure_rate_six]

. local bint1 = _b[foreclosure_inc_six]

. local seint1 = _se[foreclosure_inc_six]

. local n1 = e(N)

. local nclust1 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate_six foreclosure_inc_six [aw=pop_y], a(fips popyear) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      8,977
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =      68.02
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.9739
                                                Adj R-squared     =     0.9629
                                                Root MSE          =     3.0289

                                        (Replications based on 2,610 clusters in fips)
--------------------------------------------------------------------------------------
                     |   Observed   Bootstrap                         Normal-based
             pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
foreclosure_rate_six |  -.6640913   .1059397    -6.27   0.000    -.8717292   -.4564534
 foreclosure_inc_six |  -.5915308   .0744595    -7.94   0.000    -.7374687   -.4455929
--------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
                fips |            0            2610           2610 *   | 
             popyear |           39              40              1     | 
-----------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b2 = _b[foreclosure_rate_six]

. local se2 = _se[foreclosure_rate_six]

. local bint2 = _b[foreclosure_inc_six]

. local seint2 = _se[foreclosure_inc_six]

. local n2 = e(N)

. local nclust2 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate_six foreclosure_inc_six [aw=pop_y], a(i.fips##c.year sy) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      8,973
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =      11.83
                                                Prob > chi2       =     0.0027
                                                R-squared         =     0.9944
                                                Adj R-squared     =     0.9859
                                                Root MSE          =     1.8557

                                        (Replications based on 2,609 clusters in fips)
--------------------------------------------------------------------------------------
                     |   Observed   Bootstrap                         Normal-based
             pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
foreclosure_rate_six |   .1035453   .0993231     1.04   0.297    -.0911243    .2982149
 foreclosure_inc_six |   -.112738   .0712744    -1.58   0.114    -.2524333    .0269573
--------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
                fips |            0            2609           2609 *   | 
         fips#c.year |         2609            2609              0 ?   | 
                  sy |          195             196              1     | 
-----------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b3 = _b[foreclosure_rate_six]

. local se3 = _se[foreclosure_rate_six]

. local bint3 = _b[foreclosure_inc_six]

. local seint3 = _se[foreclosure_inc_six]

. local n3 = e(N)

. local nclust3 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate_six foreclosure_inc_six [aw=pop_y], a(i.fips##c.year popyear) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      8,977
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(2)      =      29.25
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.9908
                                                Adj R-squared     =     0.9778
                                                Root MSE          =     2.3438

                                        (Replications based on 2,610 clusters in fips)
--------------------------------------------------------------------------------------
                     |   Observed   Bootstrap                         Normal-based
             pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
foreclosure_rate_six |  -.1958598   .1047707    -1.87   0.062    -.4012067     .009487
 foreclosure_inc_six |  -.3370727   .0677347    -4.98   0.000    -.4698303   -.2043151
--------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
                fips |            0            2610           2610 *   | 
         fips#c.year |         2610            2610              0 ?   | 
             popyear |           39              40              1     | 
-----------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b4 = _b[foreclosure_rate_six]

. local se4 = _se[foreclosure_rate_six]

. local bint4 = _b[foreclosure_inc_six]

. local seint4 = _se[foreclosure_inc_six]

. local n4 = e(N)

. local nclust4 = e(N_clust)

. 
. log close
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table8.log
  log type:  text
 closed on:  11 Jun 2020, 11:23:20
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
